"""
需要Linux下执行，才显示字符Ａ，而不是MS下的"b'\xef\xbc\xa1'"
"""


def byte_decode(ch):
    # print(ch)
    l = [
        "ch = b'{}'\n".format(ch),
        "print(ch)\n",
    ]
    # print(l)
    with open('./rubbish/tmp_py.py', 'w') as f:
        f.writelines(l)
    
    import subprocess
    subprocess.run('python ./rubbish/tmp_py.py >> ./rubbish/tmp_log.log', shell=True)

for i in range(1,10):
    byte_decode(r'\xef\xbc\xa' + str(i))
